
//
//  Person.m
//  SetTheOperator
//
//  Created by 赵忠鹏 on 2019/3/13.
//  Copyright © 2019 zhaozhongpeng. All rights reserved.
//

#import "Person.h"
#import "Man.h"

@implementation Person

- (instancetype)initWithAge:(NSInteger)age andName:(NSString *)name
{
    self = [super init];
    if (self) {
        Man *manOne = [[Man alloc] initWithAge:0];
        Man *manTwo = [[Man alloc] initWithAge:2];

        _arr = @[manOne,manTwo];
        
//        _arr = @[@0,@2];  //这种怎么用集合运算符
        _age = age;
        _name = name;
    }
    return self;
}

@end
